package com.yangchuang.openpicture.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yangchuang.openpicture.pojo.UserFavoritePicture;

public interface UserFavoritePictureService extends IService<UserFavoritePicture> {
    boolean hasUserEverFavoritedPicture(Long userId, Long pictureId);

    void FavoriteFolderHashInit(Long userId, Long folderId);

    //多一个收藏夹
    void userFavoritePictureHashInit(Long userId, Long pictureId, Long folderId);

    void toggleFavorite(Long userId, Long pictureId, Long folderId, Boolean isFavorite);
}
